pub mod metasearch {
    use std::thread;

    use rouille::{router, Response};

    pub fn create_server() {
        rouille::start_server("0.0.0.0:8000", move |request| {
            router!(request,
                (GET) (/) => {
                    Response::json(&vec!["1", "2", "3"])
                },
                _ => rouille::Response::empty_404()
            )
        })
    }

    pub fn spawn() -> thread::JoinHandle<()> {
        return thread::spawn(create_server);
    }
}
